from common.base import BasePage
from selenium.webdriver.common.by import  By


from pages.loginPage import LoginPage
from pages.submitList import SubmitList


class AccountPage(BasePage):
    checkout = (By.XPATH, '//img[@alt="checkout"]')

    def accountPage(self):
        # 进行结算
        self.getElement(*self.checkout).click()
        if self.getEleValue(self.login_unae) == '登录':
            return LoginPage(self.driver)
        else:
            return SubmitList(self.driver)

if __name__ == '__main__':
    accountPage = AccountPage()
    accountPage.accountPage()










